home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimpcompat.h.z / gimpcompat.h
Encoding:
C/C++ Source or Header  |  2002-07-08  |  5.8 KB  |  128 lines

  1. /* LIBGIMP - The GIMP Library 
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  * 
  9.  * This library is distributed in the hope that it will be useful, 
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */                                                                             
  19. #ifndef __GIMPCOMPAT_H__
  20. #define __GIMPCOMPAT_H__
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif /* __cplusplus */
  25.  
  26.  
  27. /* some compatibility defines for older plug-ins */
  28.  
  29. #ifdef GIMP_ENABLE_COMPAT_CRUFT
  30.  
  31. #define gimp_attach_parasite        gimp_parasite_attach
  32. #define gimp_detach_parasite        gimp_parasite_detach
  33. #define gimp_find_parasite        gimp_parasite_find
  34. #define gimp_image_attach_parasite    gimp_image_parasite_attach
  35. #define gimp_image_detach_parasite    gimp_image_parasite_detach
  36. #define gimp_image_find_parasite    gimp_image_parasite_find
  37. #define gimp_drawable_attach_parasite    gimp_drawable_parasite_attach
  38. #define gimp_drawable_detach_parasite    gimp_drawable_parasite_detach
  39. #define gimp_drawable_find_parasite    gimp_drawable_parasite_find
  40.  
  41. #define gimp_drawable_channel        gimp_drawable_is_channel
  42. #define gimp_drawable_gray        gimp_drawable_is_gray
  43. #define gimp_drawable_color        gimp_drawable_is_rgb
  44. #define gimp_drawable_indexed        gimp_drawable_is_indexed
  45. #define gimp_drawable_layer        gimp_drawable_is_layer
  46. #define gimp_drawable_layer_mask    gimp_drawable_is_layer_mask
  47.  
  48. #define gimp_image_disable_undo        gimp_image_undo_disable
  49. #define gimp_image_enable_undo        gimp_image_undo_enable
  50. #define gimp_image_freeze_undo        gimp_image_undo_freeze
  51. #define gimp_image_thaw_undo        gimp_image_undo_thaw
  52.  
  53. #define gimp_channel_width              gimp_drawable_width
  54. #define gimp_channel_height             gimp_drawable_height
  55. #define gimp_channel_get_image_ID       gimp_drawable_image
  56. #define gimp_channel_get_layer_ID       -1
  57.  
  58. #define gimp_layer_width                gimp_drawable_width
  59. #define gimp_layer_height               gimp_drawable_height
  60. #define gimp_layer_bpp                  gimp_drawable_bpp
  61. #define gimp_layer_type                 gimp_drawable_type
  62.  
  63. #define gimp_gradient_get_gradient_data gimp_gradients_get_gradient_data
  64.  
  65. #define gimp_plugin_help_func           gimp_standard_help_func
  66.  
  67. #define gimp_query_database             gimp_procedural_db_query
  68. #define gimp_query_procedure            gimp_procedural_db_proc_info
  69.  
  70. #define gimp_query_images               gimp_image_list
  71.  
  72. #define Parasite                        GimpParasite
  73. #define PARASITE_PERSISTENT             GIMP_PARASITE_PERSISTENT
  74. #define PARASITE_UNDOABLE               GIMP_PARASITE_UNDOABLE
  75. #define PARASITE_ATTACH_PARENT          GIMP_PARASITE_ATTACH_PARENT
  76. #define PARASITE_PARENT_PERSISTENT      GIMP_PARASITE_PARENT_PERSISTENT
  77. #define PARASITE_PARENT_UNDOABLE        GIMP_PARASITE_PARENT_UNDOABLE
  78. #define PARASITE_ATTACH_GRANDPARENT     GIMP_PARASITE_ATTACH_GRANDPARENT
  79. #define PARASITE_GRANDPARENT_PERSISTENT GIMP_PARASITE_GRANDPARENT_PERSISTENT
  80. #define PARASITE_GRANDPARENT_UNDOABLE   GIMP_PARASITE_GRANDPARENT_UNDOABLE
  81. #define parasite_new                    gimp_parasite_new
  82. #define parasite_free                   gimp_parasite_free
  83. #define parasite_copy                   gimp_parasite_copy
  84. #define parasite_compare                gimp_parasite_compare
  85. #define parasite_is_type                gimp_parasite_is_type
  86. #define parasite_is_persistent          gimp_parasite_is_persistent
  87. #define parasite_is_undoable            gimp_parasite_is_undoable
  88. #define parasite_has_flag               gimp_parasite_has_flag
  89. #define parasite_flags                  gimp_parasite_flags
  90. #define parasite_name                   gimp_parasite_name
  91. #define parasite_data                   gimp_parasite_data
  92. #define parasite_data_size              gimp_parasite_data_size
  93. #define PIXPIPE_MAXDIM                  GIMP_PIXPIPE_MAXDIM
  94. #define PixPipeParams                   GimpPixPipeParams
  95. #define pixpipeparams_init              gimp_pixpipe_params_init
  96. #define pixpipeparams_parse             gimp_pixpipe_params_parse
  97. #define pixpipeparams_build             gimp_pixpipe_params_build
  98.  
  99. #define GPlugInInfo                     GimpPlugInInfo
  100. #define GTile                           GimpTile
  101. #define GDrawable                       GimpDrawable
  102. #define GPixelRgn                       GimpPixelRgn
  103. #define GParamColor                     GimpParamColor
  104. #define GParamRegion                    GimpParamRegion
  105. #define GParamData                      GimpParamData
  106. #define GParamDef                       GimpParamDef
  107. #define GParam                          GimpParam
  108.  
  109. #define CAN_HANDLE_RGB                  GIMP_EXPORT_CAN_HANDLE_RGB
  110. #define CAN_HANDLE_GRAY                 GIMP_EXPORT_CAN_HANDLE_GRAY
  111. #define CAN_HANDLE_INDEXED              GIMP_EXPORT_CAN_HANDLE_INDEXED
  112. #define CAN_HANDLE_ALPHA                GIMP_EXPORT_CAN_HANDLE_ALPHA 
  113. #define CAN_HANDLE_LAYERS               GIMP_EXPORT_CAN_HANDLE_LAYERS
  114. #define CAN_HANDLE_LAYERS_AS_ANIMATION  GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_ANIMATION
  115. #define NEEDS_ALPHA                     GIMP_EXPORT_NEEDS_ALPHA
  116. #define EXPORT_CANCEL                   GIMP_EXPORT_CANCEL
  117. #define EXPORT_IGNORE                   GIMP_EXPORT_IGNORE
  118. #define EXPORT_EXPORT                   GIMP_EXPORT_EXPORT
  119.  
  120. #endif /* GIMP_ENABLE_COMPAT_CRUFT */
  121.  
  122.  
  123. #ifdef __cplusplus
  124. }
  125. #endif /* __cplusplus */
  126.  
  127. #endif /* __GIMPCOMPAT_H__ */
  128.